#ifndef PCMSPEC_H
#define PCMSPEC_H

extern "C" {

    #include <libavformat/avformat.h>
}

class PCMSpec
{
private:
    int _sampleRate;
    int _channelLayout;
    AVSampleFormat _format;
    int _frameSize;


public:
    PCMSpec();
    PCMSpec(int sampleRate,int channelLayout, AVSampleFormat format);

    int getSampleRate() const;

    int getChannelLayout() const;

    int getFormat() const;

    int frameSize() const;

    void setSampleRate(int sampleRate);
    void setChannelLayout(int channelLayout);
    void setSampleFormat(AVSampleFormat format);
    void calFrameSize();
};

#endif // PCMSPEC_H
